package com.example.androidui12306;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class My12306 extends AppCompatActivity {

    private Button out_login;
    private static final String TAG = "My12306";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my12306);


        iniView();
        iniData();
    }

    private void iniData() {
        out_login.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Log.e(TAG, "onClick: Login Out Button Click" );
                finish();

            }
        });
    }

    private void iniView() {
        out_login = findViewById(R.id.out_loin);
    }
}
